package com.example.project.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * (SysMessage)实体类
 *
 * @author makejava
 * @since 2024-03-04 16:58:59
 */
@Data
public class SysMessage implements Serializable {
    private static final long serialVersionUID = -66701387980437498L;
    /**
     * 系统消息表id
     */
    private Integer id;
    /**
     * 报警消息
     */
    private String message;
    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 状态 1：未读 2：已读
     */
    private Integer sState;



}

